package middleware

import (
	"app.com/common.v1/tool"
	"context"
	"github.com/gin-gonic/gin"
	"google.golang.org/grpc/metadata"
)

func CheckAuth(ctx *gin.Context) {
	header := metadata.New(map[string]string{"tokenId": "123456", "uuid": tool.GenerateUUID()})
	c := metadata.NewOutgoingContext(context.Background(), header)
	ctx.Set("metadata", c)
}
